#include <gtest/gtest.h>

#include "../src/sort/sort.h"
#include "../src/utils/array.h"
#include "../src/algorithm/Hanoi.h"
#include "../src/algorithm/StackOutSeries.h"
		
TEST(Hanoi, move)
{
	Hanoi h;
	h.move(10, 'A', 'B', 'C');
}
TEST(StackOutSeries, judge)//判断出栈序列是否正确
{
	int testCaseCount = 4;
	StackOutSeries s;
	int a[][5] = { { 1,2,3,4,5 },{ 5,4,3,2,1 },{ 4,5,3,2,1 },{ 4,3,5,1,2 } };
	bool result[] = {true, true, true, false};
	for (int i = 0; i < testCaseCount; i++) {
		ASSERT_EQ(s.judge(a[i], 5), result[i]);
	}
}
